import request from '@/router/axios'

export function fetchHisDrugFrequencyList(query) {
  return request({
    url: '/his/hisdrugfrequency/page',
    method: 'get',
    params: query
  })
}

export function addHisDrugFrequencyObj(obj) {
  return request({
    url: '/his/hisdrugfrequency',
    method: 'post',
    data: obj
  })
}

export function getHisDrugFrequencyObj(id) {
  return request({
    url: '/his/hisdrugfrequency/' + id,
    method: 'get'
  })
}

export function delHisDrugFrequencyObj(id) {
  return request({
    url: '/his/hisdrugfrequency/' + id,
    method: 'delete'
  })
}

export function putHisDrugFrequencyObj(obj) {
  return request({
    url: '/his/hisdrugfrequency',
    method: 'put',
    data: obj
  })
}
